package com.lxf.cloudotherserve.mapper;

import com.lxf.cloudotherserve.bean.UserCLRBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 罗兴发
 * @data 2025/6/30 14:44
 * @description：用户点赞/收藏/转发-持久层
 */
@Mapper
public interface UserCLRMapper {
    int addUserCLR(@Param("list") List<UserCLRBean> list);

    int deleteByIdAndType(@Param("type") Integer type,
                          @Param("objId") String objId);

    UserCLRBean getCLRByClrTypeAndObjIdAndObjTypeAndUserId(@Param("clrType") Integer clrType,
                                                           @Param("objId") String objId,
                                                           @Param("objType") Integer objType,
                                                           @Param("userId") Integer userId);
}
